package com.aspose.cells;

class zbkn extends zck {
   zbkn(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var4 = new com.aspose.cells.b.a.b.a.ze();
      float var3;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var3 = Math.min(var1.h(), var1.i()) * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var3 = Math.min(var1.h(), var1.i()) * 0.2F;
         }
      } else {
         var3 = Math.min(var1.h(), var1.i()) * 0.2F;
      }

      if (var3 <= 0.0F) {
         var4.b(var1);
         var4.i();
         return var4;
      } else {
         float var2 = var3 * 2.0F;
         com.aspose.cells.b.a.b.zt var5 = new com.aspose.cells.b.a.b.zt(var2, var2);
         com.aspose.cells.b.a.b.zq var6 = new com.aspose.cells.b.a.b.zq(var1.d(), var5);
         var4.a(var6, 180.0F, 90.0F);
         var6.a(var1.l() - var2);
         var4.a(var6, 270.0F, 90.0F);
         var6.b(var1.m() - var2);
         var4.a(var6, 0.0F, 90.0F);
         var6.a(var1.j());
         var4.a(var6, 90.0F, 90.0F);
         var4.i();
         return var4;
      }
   }

   void a() {
      com.aspose.cells.b.a.b.zq var1 = this.d(this.e.v());
      super.c(var1);
   }

   private com.aspose.cells.b.a.b.zq d(com.aspose.cells.b.a.b.zq var1) {
      float var2 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var2 = Math.min(var1.h(), var1.i()) * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var2 = Math.min(var1.h(), var1.i()) * 0.2F;
         }
      } else {
         var2 = Math.min(var1.h(), var1.i()) * 0.2F;
      }

      if (var2 <= 0.0F) {
         return var1;
      } else {
         float var3 = var2 * 2.0F;
         com.aspose.cells.b.a.b.zt var4 = new com.aspose.cells.b.a.b.zt(var3, var3);
         com.aspose.cells.b.a.b.zq var5 = new com.aspose.cells.b.a.b.zq(var1.d(), var4);
         com.aspose.cells.b.a.b.zq var6 = zbgk.a(var5);
         float var7 = var6.f() - var1.f();
         float var8 = var6.g() - var1.g();
         float var9 = var6.f();
         float var10 = var6.g();
         com.aspose.cells.b.a.b.zq var11 = new com.aspose.cells.b.a.b.zq(var9, var10, var1.h() - 2.0F * var7, var1.i() - 2.0F * var8);
         return var11;
      }
   }
}
